package com.demoworld;

/**
 * Description
 * <p>
 * </p>
 * DATE 2018/5/22.
 *
 * @author liwei5.
 */

import org.springframework.context.ApplicationEvent;

public class EmailEvent extends ApplicationEvent {
    /**
     * <p>Description：</p>
     */
    private static final long serialVersionUID = 1L;
    public String address;
    public String text;

    public EmailEvent(Object source) {
        super(source);
    }

    public EmailEvent(Object source, String address, String text) {
        super(source);
        this.address = address;
        this.text = text;
    }

    public void print(){
        System.out.println("hello spring event!");
    }

}